import axiosData from "@/api/axios";
export default {
  /**
   * @description: 获取维修知识库管理 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Array}
   */
  queryPageList(param) {
    return axiosData.post("/v3/equipment-hitch/v1/repairKnowledge/queryPageList", param);
  },
  /**
   * @description: 根据维修知识库编码查询影像数据
   * @return {Object}
   */
  queryByRepairKnowledgeCode(param) {
    return axiosData.post("/v3/equipment-hitch/v1/knowledgeImage/queryByRepairKnowledgeCode", param);
  },
  /**
  * @description: 维修知识库添加
  * @param {Object} params *
  * @return {Object}
  */
  add(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairKnowledge/add", params);
  },
  /**
  * @description: 维修知识库删除
  * @param {Object} params *
  * @return {Object}
  */
  del(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairKnowledge/delByRepairKnowledgeCodeList", params);
  },
  /**
  * @description: 维修知识影像库添加
  * @param {String} repairKnowledgeCode *
  * @param {Array} files *
  * @return {Object}
  */
  addKnowledgeImage(params) {
    return axiosData.post("/v3/equipment-hitch/v1/knowledgeImage/add", params);
  },
  /**
  * @description: 根据图片/影视编码删除图片
  * @param {Object} params *
  * @return {Object}
  */
  delKnowledgeImage(params) {
    return axiosData.post("/v3/equipment-hitch/v1/knowledgeImage/del", params);
  }
};
